package com.sinochem.sales.auth.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @author xuan😴🐶🐱🐽🌺  <a href="zhangshixuanj@163.com">联系作者</a>
 * @version Revision:v1.0,Date: 2018/4/17 11:55
 * @project sinochem-ubmp-registry
 * @description
 * @Modification Date: 2018/4/17 11:55  {填写修改说明}
 */
public class Password {

    private static final PasswordEncoder ENCODER = new BCryptPasswordEncoder();


    /**
     * 密码生成
     *
     * @param args
     */
    public static void main(String[] args) {
        System.out.println(ENCODER.encode("xuan"));
    }
}
